package yf.mall.vo.down;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.GoodsGroupEntity;
import yf.mall.vo.GoodsGroupVo;


/**
 * 团购发起实体
 * 表名 goods_group
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 25 10:16:00 CST 2022
 */
@Data
public class GoodsGroupDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    //
    @ExcelProperty("")
    private Long id;

    //用户Id
    @ExcelProperty("用户Id")
    private Long userId;

    //产品ID
    @ExcelProperty("产品ID")
    private Long goodsId;

    //用户编号
    @ExcelProperty("用户编号")
    private String userCode;

    //用户名字
    @ExcelProperty("用户名字")
    private String userName;

    //IMG-微信二维码
    @ExcelProperty("IMG-微信二维码")
    private String userWxQr;

    //利润
    @ExcelProperty("利润")
    private String profit;


    public GoodsGroupDown() {

    }

    public GoodsGroupDown(GoodsGroupVo vo) {
        GoodsGroupEntity entity = vo.getEntity();
        this.setId(entity.getId());

        this.setUserId(entity.getUserId());

        this.setGoodsId(entity.getGoodsId());

        this.setUserCode(entity.getUserCode());

        this.setUserName(entity.getUserName());

        this.setUserWxQr(entity.getUserWxQr());

        this.setProfit(entity.getProfit());

    }


}
